* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url("../img/bg.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login {
    background: #fff;
    padding: 70px 50px;
}

.login h1 {
    text-align: center;
    margin-bottom: 40px;
}

.login input {
    width: 375px;
    padding: 14px 20px 14px 40px;
    margin-bottom: 10px;
    outline: none;
    border: 1px solid #dddddd;
}

.login input:focus {
    border: 1px solid #cccccc;
}

.login p {
    position: relative;
}

#submit {
    margin-top: 30px;
    background: #7554bf;
    color: #fff;
    cursor: pointer;
}

#submit:hover {
    background: #6531bf;
}

.user {
    background: url("../img/yonghuming.png");
    width: 21px;
    height: 23px;
    display: inline-block;
    position: absolute;
    left: 9px;
    top: 11px;
}

.password {
    background: url("../img/mima.png");
    width: 19px;
    height: 25px;
    display: inline-block;
    position: absolute;
    left: 9px;
    top: 11px;
}

.reg {
    height: 419px;
    padding: 100px 50px;
    color: #ffffff;
    background: url("../img/bg-login.png");
    background-size: cover;
}

.reg p {
    margin-bottom: 50px;
}

.reg a {
    color: #f3f3f3;
    text-decoration: none;
}

.reg a:hover {
    color: #ffffff;
}

.right {
    background: url("../img/youjiantou.png");
    width: 28px;
    height: 28px;
    display: inline-block;
    position: relative;
    top: 8px;
    left: 4px;
}



@media (max-width:600px) {
    .container{
        flex-wrap: wrap;
    }
    .login input{
        width: 200px;
    }
    .reg{
        width: 300px;
        height: auto;
        padding: 50px;
    }
}
